/*package com.neo.redis;
package com.neo.shiro;

import org.apache.shiro.cache.Cache;
import org.apache.shiro.cache.CacheException;
import org.apache.shiro.cache.CacheManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;

public class RedisCacheManager implements CacheManager{

	private Logger logger = LoggerFactory.getLogger(RedisCacheManager.class);
	@Autowired
	private RedisTemplate<Object, Object> redisTemplate;
	
	@Override
	public <K, V> Cache<K, V> getCache(String name) throws CacheException {
		logger.debug("==>getCache [cacheKey]:" + name);
		return new ShiroCache<K, V>(name, redisTemplate);
	}

	public RedisTemplate<Object, Object> getRedisTemplate() {
        return redisTemplate;
    }

    public void setRedisTemplate(RedisTemplate<Object, Object> redisTemplate) {
        this.redisTemplate = redisTemplate;
    }
}
*/